package level_one;

import java.util.Scanner;

public class Three {
    public static void main(String[] args) {
        System.out.println("请输入您的成绩");
        //. 创建键盘录入对象
        Scanner scanner = new Scanner(System.in);
        //2. 调用方法获取输入的成绩
        int score = scanner.nextInt();
        if (score >= 0 && score <= 100) {
            //3. 使用三元运算符如果成绩大于等于 60 返回"及格",否则返回不"及格"
            String s = score > 60 ? "及格" : "不及格";
            System.out.println(s);
        } else {
            System.out.println("分数必须处于0-100之间");
        }
    }
}

